package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter
public class Customer {

    public static final int STATE_POOL = 0;
    public static final int STATE_POTENTIAL = 1;
    public static final int STATE_VIP = 2;
    public static final int STATE_LOST = -1;

    private Long id;

    private String idNo; //身份证号码

    private String name; //名字

    private Integer age;

    private boolean gender;

    private String tel;

    private String email;

    private String address;

    private String qq;

    private String wechat;

    private DictionaryDetail job;//职业

    private DictionaryDetail salaryLevel;//薪资水平

    private DictionaryDetail source;//客户来源

    private Employee chargeUser;

    private Employee inputUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date inputDate;

    private Integer status;

}